import { createApp } from 'vue'
import App from '@/App.vue';

import { createPinia } from 'pinia'
import { createI18n } from 'vue-i18n';
import router from "@/router";

const pinia = createPinia()

const i18n = createI18n({
  legacy: false, // 如果你使用 Composition API（推荐），请将legacy设置为false
  locale: 'zh', // 默认语言环境
  messages: {
    en: {
      hello: 'Hello',
      welcome: 'Welcome to our app!',
    },
    zh: {
      hello: '你好',
      welcome: '欢迎来到我们的应用！',
    },
  },
});


createApp(App).use(i18n).use(router).use(pinia).mount('#app');
